package com.itheima.dubbo.web;


import com.itheima.dubbo.UserFace;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("user")
public class UserController {


    @DubboReference(retries = 5)
    private UserFace userFace;

    @GetMapping("hellow")
    public  String hello(String username){

        return userFace.hello(username);
    }
}
